package com.optserso.camera.controller;

import com.optserso.camera.server.IRCameraServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @Author: fei.li02
 * @Date: 2023/11/16 11:05
 * @Description:红外摄像机控制类。提供http://127.0.0.1:8090/camera/info的url供外部通过HttpClient调用
 */
@RestController
public class IRCameraController {
    @Autowired
    private IRCameraServer irCameraServer;
    @GetMapping("/camera/info")
    public Map<String,Object> getExample() {
        Map<String,Object> map = irCameraServer.ImageStatisticInfo();
        return map;
    }
}
